<template>
  <div style="padding: 20px 200px">
    <div class="warp1">
      <span>城市指数</span>
      <span>行政区指数</span>
      <span>片区指数</span>
      <span>小区指数</span>
    </div>
    <el-form size="small" inline>
      <el-form-item>
        <el-select placeholder="全部城市">
          <el-option v-for="(item,index) in list" :key="index" :label="item.label" :value="item.value"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-date-picker
          v-model="time"
          type="datetimerange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button type="primary">查询</el-button>
        <el-button type="success">全部下载</el-button>
      </el-form-item>
    </el-form>
    <el-table
      :data="tableData"
      border
      style="width: 100%">
      <el-table-column label="地区名称" width="180" align="center"></el-table-column>
      <el-table-column label="报告日" width="180" align="center"></el-table-column>
      <el-table-column label="平均价格" width="180" align="center"></el-table-column>
      <el-table-column label="边际价格" width="180" align="center"></el-table-column>
      <el-table-column label="活跃度" width="180" align="center"></el-table-column>
      <el-table-column label="月涨幅" width="180" align="center"></el-table-column>
      <el-table-column label="年涨幅" width="180" align="center"></el-table-column>
      <el-table-column label="操作" align="center">
        <template slot-scope="scope">
          <el-button
            size="mini"
            @click="handleEdit(scope.$index, scope.row)">查询</el-button>
          <el-button
            size="mini"
            type="danger"
            @click="handleDelete(scope.$index, scope.row)">下载</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      city: '',
      time: '',
      list: [
        {value: 111,label:'城市1'}
      ],
      tableData: []
    }
  },
  mounted() {
  },
  methods: {
    handleEdit() {},
    handleDelete() {}
  }
}

</script>

<style lang="scss" scoped>
.warp1{
  display: flex;
  justify-content: space-between;
  span{
    padding: 30px 40px;
    border: 1px solid #666666;
    border-radius: 3px;
  }
}
</style>
